package com.cyclinggle.cloud.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import com.cyclinggle.cloud.model.User;

@FeignClient(name = "ch4-6-provider")
public interface UserService {
	
	@GetMapping("/users/")
	String get(User user);
	
	@PostMapping("/users/update")
	String add(@RequestBody User uesr);
}
